<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/">
    <table cellspacing="2" cellpadding="2" border="1">
      <tr>
        <th>User Id</th>
        <th>Name</th>
        <th>Password</th>
        <th>Employee Id</th>
        <th>Roles</th>
      </tr>
      <xsl:apply-templates/>
    </table>

  </xsl:template>

  <xsl:template match="user">
    <tr>
      <td>
        <a href="a">
          <xsl:attribute name="href">
            <xsl:value-of disable-output-escaping="yes" select="edit_url"/>
          </xsl:attribute>
          <xsl:value-of select="id"/>
        </a>
      </td>
      <td><xsl:value-of select="name"/></td>
      <td><xsl:value-of select="password"/></td>
      <td><xsl:value-of select="employeeId"/></td>
      <td>
        <xsl:apply-templates select="roles"/>
      </td>
    </tr>
    
  </xsl:template>

  <xsl:template match="roles">
    <xsl:for-each select="role">
      <xsl:value-of select="."/><br/>
    </xsl:for-each>
  </xsl:template>

</xsl:stylesheet>
